package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.MerchantSettlementAmountDetail;

public interface MerchantSettlementAmountDetailMapper
{
    int deleteByPrimaryKey(Long merchantSettlementAmountDetailId);

    int insert(MerchantSettlementAmountDetail record);

    int insertSelective(MerchantSettlementAmountDetail record);

    MerchantSettlementAmountDetail selectByPrimaryKey(Long merchantSettlementAmountDetailId);

    int updateByPrimaryKeySelective(MerchantSettlementAmountDetail record);

    int updateByPrimaryKey(MerchantSettlementAmountDetail record);

    /**
     * 商家未结算明细分页 <br/>
     * <p>
     * Description: TODO(详细描述) <br/>
     * <p>
     * Author: Administrator<br/>
     * <p>
     * Date: 2013-12-20-下午03:22:49<br/>
     * <p>
     * 
     * @param reportId
     * @param merchantName
     * @param beginTime
     * @param endTime
     * @param benginIndex
     * @param pageSize
     * @return
     * 
     */
    List<MerchantSettlementAmountDetail> selectDetailByReportIdAndMerchantName(@Param("settlementExportReportId") Long settlementExportReportId,
            @Param("merchantName") String merchantName, @Param("beginTime") String beginTime,
            @Param("endTime") String endTime, @Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);

    /**
     * 商家未结算明细总条数 <br/>
     * <p>
     * Description: TODO(详细描述) <br/>
     * <p>
     * Author: Administrator<br/>
     * <p>
     * Date: 2013-12-19-下午06:14:46<br/>
     * <p>
     * 
     * @param reportId
     * @param merchantName
     * @return
     * 
     */
    int selectCountByReportIdAndMerchantName(@Param("settlementExportReportId") Long settlementExportReportId, @Param("merchantName") String merchantName,
            @Param("beginTime") String beginTime, @Param("endTime") String endTime);
}